package hotel.switchs.oversea.online.controller;

import hotel.base.oversea.controller.BaseController;
import hotel.base.oversea.utils.Result;
import hotel.switchs.oversea.online.service.SwitchCountryInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangjinzheng
 * @date 2020-04-29
 */
@Slf4j
@RestController
@RequestMapping("/switchCountryInfo")
@Api(value = "SwitchCountryInfoController", tags = {"获取国家信息接口"})
public class SwitchCountryInfoController extends BaseController {

    @Autowired
    private SwitchCountryInfoService switchCountryInfoService;

    /**
     * 获取国家列表
     * @return
     */
    @GetMapping("/getdltcountrylist")
    @ApiOperation(value = "获取国家信息接口", notes = "必须经过了OAuth授权")
    public Result<Object> getdltcountrylist() {

        return  switchCountryInfoService.getdltcountrylist();
    }

}
